package com.biwei.app.wrap.controller;

import com.biwei.app.wrap.service.UserService;
import com.biwei.app.wrap.vo.Assets;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

@RestController
@RequestMapping("wrap/user")
public class UserController {
    private UserService userService;

    public UserController(UserService userService) {
        this.userService = userService;
    }

    @GetMapping("assets")
    public Assets assets() throws IOException {
        return userService.assets();
    }

}
